package com.snail.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snail.model.pojo.user.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
* @author 21116
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2025-08-12 11:59:08
* @Entity com.snail.entity.SysUser
*/
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Update("update sys_user set dept_id = #{deptId} where user_id = #{userId}")
    int updateDeptIdByUserId(@Param("userId") Long userId, @Param("deptId") Long deptId);
}